package zengqiang.day01

fun main(args: Array<String>) {
    //二元元组
    val pair1=Pair("test",20)
    println(pair1)//(test, 20)
    var pair2="test1" to 30
    println(pair2)//(test1, 30)
    println(pair2.first)
    println(pair2.second)
    //三元元组
    var priple=Triple("qiang",20,"ces")
    println(priple)//(qiang, 20, ces)
    println(priple.first)
    println(priple.second)
    println(priple.third)
}